﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Alos.Entity;
using Alos.IRepository;
using PetaPoco;

namespace Alos.Repository
{
    public class ReResourceEvaluateRecordRepository : BaseRepository<ReResourceEvaluateRecord>, IReResourceEvaluateRecordRepository
    {
        /// <summary>
        /// 资源评价表（）
        /// </summary>
        /// <param name="id"></param>
        /// <param name="evaluateContent">评价类型  0点赞，1不懂</param>
        /// <returns></returns>
        public bool CreateReResourceEvaluateRecord(List<ReResourceEvaluateRecord> ReResourceEvaluateRecords)
        {
            bool tianjia = true;
            foreach (ReResourceEvaluateRecord item in ReResourceEvaluateRecords)
            {
                if (Convert.ToInt32(item.Insert()) == 0)
                {
                    tianjia = false;
                }
            }
            return tianjia;
        }
    }
}
